{
	ratio = $1;
	map = $2;
	
	if (ratio != currentRatio) {
		if (cnt > 0) {
			print currentRatio, sprintf("%f",sum/cnt), min, max;
		}

		cnt = 0;
		sum = 0;
		min = 1;
		max = 0;
		currentRatio = ratio;
	}
	
	cnt++;
	sum += map;
	if (map < min) min = map;
	if (map > max) max = map;
}

END {
	if (cnt > 0) {
		print currentRatio, sum/cnt, min, max;
	}
}